<template>
  <div class="favorites-page">
    <div class="page-header">
      <h2>我的收藏</h2>
      <p class="subtitle">共 {{ favoritesCount }} 个收藏项目</p>
    </div>
    <FavoritesList />
  </div>
</template>

<script setup>
import { computed } from 'vue';
import FavoritesList from '@/components/FavoritesList.vue';
import { useFavoritesStore } from '@/stores/favoritesStore';

const favoritesStore = useFavoritesStore();
const favoritesCount = computed(() => favoritesStore.getFavoritesCount);
</script>

<style scoped>
.favorites-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-header {
  margin-bottom: 24px;
  border-bottom: 1px solid #ebeef5;
  padding-bottom: 16px;
}

.page-header h2 {
  margin: 0;
  font-size: 24px;
  color: #303133;
}

.subtitle {
  margin: 8px 0 0;
  color: #909399;
  font-size: 14px;
}
</style> 